package com.newegg.nlp.arangodb.model;

import com.arangodb.springframework.annotation.Edge;
import com.arangodb.springframework.annotation.From;
import com.arangodb.springframework.annotation.To;
import com.newegg.nlp.arangodb.BaseModel;

@Edge
public class BrandItem extends BaseModel{

	@From
	Brand brand;
	
	@To
	Item item;
	
	public BrandItem(Brand brand, Item item) {
		super();
		this.setId(brand.getId() + "_" + item.getId());
		this.brand = brand;
		this.item = item;
	}

	public Brand getBrand() {
		return brand;
	}

	public void setBrand(Brand brand) {
		this.brand = brand;
	}

	public Item getItem() {
		return item;
	}

	public void setItem(Item item) {
		this.item = item;
	}
}
